package com.beans.usercontoller;

import com.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author 郝文雪
 * @date 2022/7/14 13:14
 * @Description Test
 */

@Controller
public class UserController8 {
    @Autowired
    private User user1;

    public User getUser(){
        User user=user1;
        user.setName("唐僧");
        return  user;
    }
}
